package com.zyz.friend.service.exam;

import com.zyz.common.core.model.TableDataInfo;
import com.zyz.friend.model.exam.dto.ExamQueryDTO;
import com.zyz.friend.model.exam.dto.ExamRankDTO;

public interface IExamService {
    TableDataInfo list(ExamQueryDTO examDTO);

    TableDataInfo redisList(String token , ExamQueryDTO examDTO);

    String firstQuestion(Long examId);

    String preQuestion(Long examId, Long questionId);

    String nextQuestion(Long examId, Long questionId);

    TableDataInfo rankList(ExamRankDTO rankDTO);

    // 根据时间返回时间内的竞赛列表
    TableDataInfo listByTime(ExamQueryDTO examDTO);
}
